class A {
  name: string = 'abc'; // error

  constructor(id: number) { // error
    this.name = `${id}`;
  }

  public getName(): string {
    return this.name;
  }

  protected age: number = 0;
}
